package com.bbva.kyfb.kyfbdtofo;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

@Component
public class ListaICDDto {
	
	 private String sIcdDesPathbuzo;
	 private Short codbancoIn;
	 private String desbancoIn;
	 private Short servbad;
	 private Short codpaisbbv;
	 private String despaisbbv;
	 private String paisoalf;
	 
	public static List<ListaICDDto> parseListaICDs(List<Object[]> listaICDs) {
		
		final ArrayList<ListaICDDto> listaICDsDto = new ArrayList<ListaICDDto>();
		
		ListaICDDto listaICDDto;
		
		int i;
		for(Object[] o : listaICDs)
		{
			i = 0;
			listaICDDto = new ListaICDDto();
			listaICDDto.setsIcdDesPathbuzo((String)o[i]);
			listaICDDto.setCodbancoIn((Short)o[++i]);
			listaICDDto.setDesbancoIn((String)o[++i]);
			listaICDDto.setServbad((Short)o[++i]);
			listaICDDto.setCodpaisbbv((Short)o[++i]);
			listaICDDto.setDespaisbbv((String)o[++i]);
			listaICDDto.setPaisoalf((String)o[++i]);
			listaICDsDto.add(listaICDDto);
		}
		
		return listaICDsDto;
	}
	
	public ListaICDDto() {
		super();
	}
	 
	public String getsIcdDesPathbuzo() {
		return sIcdDesPathbuzo;
	}
	public void setsIcdDesPathbuzo(String sIcdDesPathbuzo) {
		this.sIcdDesPathbuzo = sIcdDesPathbuzo;
	}
	public Short getCodbancoIn() {
		return codbancoIn;
	}
	public void setCodbancoIn(Short codbancoIn) {
		this.codbancoIn = codbancoIn;
	}
	public String getDesbancoIn() {
		return desbancoIn;
	}
	public void setDesbancoIn(String desbancoIn) {
		this.desbancoIn = desbancoIn;
	}
	public Short getServbad() {
		return servbad;
	}
	public void setServbad(Short servbad) {
		this.servbad = servbad;
	}
	public Short getCodpaisbbv() {
		return codpaisbbv;
	}
	public void setCodpaisbbv(Short codpaisbbv) {
		this.codpaisbbv = codpaisbbv;
	}
	public String getDespaisbbv() {
		return despaisbbv;
	}
	public void setDespaisbbv(String despaisbbv) {
		this.despaisbbv = despaisbbv;
	}
	public String getPaisoalf() {
		return paisoalf;
	}
	public void setPaisoalf(String paisoalf) {
		this.paisoalf = paisoalf;
	}

	 
}
